//
//  SDBaseData+Cache.h
//  SKinDiary
//
//  Created by pcyang on 16/6/26.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import "SDBaseData.h"

@interface SDBaseData (Cache)
- (NSString*)identifier;
- (NSString*)cachePath;

- (void)saveToFile;
- (BOOL)readFromFile;
- (void)readFromFileWithCompletion:(void (^)(void))completion;
- (void)resetFromCacheObject:(SDBaseData*)model;
- (NSTimeInterval)cacheExpireTime;
-(BOOL)needCache;
+ (void)cleanCache;
@end
